package zju.dgm.dto;

import java.io.Serializable;

public class MessageFrame implements Serializable {

    public static final int HELLO = 0;

    /**
     * 用于JSON序列化
     */
    public MessageFrame(){}

    public MessageFrame(String sender, int type, byte[] data) {
        this.sender = sender;
        this.type = type;
        this.data = data;
    }

    public MessageFrame(String sender) {
        this(sender, HELLO, null);
    }

    public String sender;
    public int type;
    public byte[] data;

}
